#pragma once

#include "../../config.hpp"


namespace dcs {
	struct parser_t {
		log_handler_t log_handler_;
		std::filesystem::path path_;
		std::string content_;
		float ratio_ = 1.0;
		std::string match_key_;

		parser_t(const log_handler_t &, const std::filesystem::path &, float, const std::string &);

		bool is_valid() const;
		std::vector<std::tuple<std::time_t, std::vector<float>>> run_analysis(const std::vector<std::string> &, std::uint32_t);
	};
}